package com.wondertek.service.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.wondertek.service.dto.sys.req.SysUserQueryReq;
import com.wondertek.service.dto.sys.res.SysUserRes;
import com.wondertek.service.entity.sys.SysUserPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * @author xqs
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUserPo> {

    /**
     * 用户分页查询
     * @param page /
     * @param sysUserQueryReq /
     * @return /
     */
    Page<SysUserRes> page(Page<SysUserPo> page, @Param("param") SysUserQueryReq sysUserQueryReq);

    /**
     * 用户查询(导出用)
     * @param sysUserQueryReq /
     * @return /
     */
    List<SysUserRes> page(@Param("param") SysUserQueryReq sysUserQueryReq);

    /**
     * 根据组织ID查询用户
     * @param param /
     * @return /
     */
    List<SysUserRes> findUserByParam(@Param("param") Map<String, Object> param);

}
